package com.sudo.dao.admin.model.bo;

import com.sudo.common.utils.PageBO;
import com.sudo.common.validenum.EnumValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = true)
public class SysJobLogBO extends PageBO {

    @NotNull(message = "任务ID不能为空")
    private Integer jobId;

    @EnumValue(strValues = {"SUCCESS","FAIL"},message = "日志结果必须为指定值SUCCESS/FAIL")
    private String jobResult;

    @EnumValue(strValues = {"MANUAL","AUTO"},message = "日志动作必须为指定值MANUAL/AUTO")
    private String jobAction;
}
